package com.alibaba.nacos.address.auth;

import com.alibaba.nacos.core.auth.AccessException;
import com.alibaba.nacos.core.auth.AuthManager;
import com.alibaba.nacos.core.auth.Permission;
import com.alibaba.nacos.core.auth.User;

/**
 * Address server auth manager.
 *
 * <p>For #3091, Only implement an empty auth manager so that address server can startup.</p>
 *
 * @author xiweng.yy
 */
public class AddressServerAuthManager implements AuthManager {

    @Override
    public User login(Object request) throws AccessException {
        User result = new User();
        result.setUserName("nacos");
        return result;
    }

    @Override
    public void auth(Permission permission, User user) throws AccessException {
    }
}
